﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;

namespace NotifierService.Service
{
    [ServiceContract(
        SessionMode = SessionMode.Required
    )]
    public interface IServiceBase
    { 
        [OperationContract(IsInitiating = true, IsTerminating = false)] 
        bool Authenticate(string name, string password);

        [OperationContract]
        bool PlayAudio(AudioType type);

        [OperationContract]
        RealtimeBroadcastServiceData StartRealtimeBroadcast();

        [OperationContract]
        bool StopRealtimeBroadcast();

        [OperationContract(IsTerminating = true)]
        void Close();
    }
}
